﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ClassLibrary.DAO;

public partial class Admin_ucControl_ucListKhuyenMai : System.Web.UI.UserControl
{
    TblKhuyenMaiDAO kmDAO = new TblKhuyenMaiDAO(Global.CONNECTION_STRING);

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            grdKhuyenMai.DataSource = kmDAO.GetALL();
            grdKhuyenMai.DataBind();
        }
    }
}